I have the attached Grid defined with a button column, but the event handlers on the Repository Button do not fire. Can you please let me know what I am doing wrong?
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Daniel,
You set the this.gridView1.OptionsBehavior.Editable property to false. So, in-place editors are not activated and, therefore, their events are not fired. If you describe your goals in more detail, we'll offer you a suitable solution to your problem.
Thank you,
Paul
This list is for a window in a touch screen interface. The grid is readonly (not editable) yet we want to have a button the user can press to select an item. How would I do this?
If I set editable to True on the view and then set individual columns to AllowEdit=False, ReadOnly=True, everything mostly works, except when I click on the button in the 4th column the item in the thrid column becomes right justified, I tried adding a specfice repository text editor for the colument and setting Apperance, AppearanceDisabled, and ApperanceFocused TextOptions.HAlignment to Center, but nothing changes.
Hello Daniel,
As far as I understand, you resolved the initial issue. To resolve the second, please set the GridColumn.AppearanceCell.TextOptions.HAlignment to Near. If this does not help, could you please provide us with a sample project?
Thank you,
Paul
I am a little confused, why would changing the HAlligmnet from Center to Near stop it from jumping all the way to the right when selected. I did as you suggested and now it just starts out on the far left and jumps to the far right when I click the button. I am now two days late getting acceptance from my client on a project due to this problem. I cannot easily send you a project, there are too many dependencies. I will include some screen prints though, see my next update.
Alright, I am going to have to admit this is a really bizarre problem. I have a button clicked event handler in my code. If I display a Message Box in this event handler, which I was doing for testing purposes, the 3 column shifts to the far right when I click on the button in the 4th column. If I remove the message box from the event handler, everything works fine. I would assume that it has something to do with the window losing focus.
Hello Daniel,
Thank you for additional explanation. This issue seems to be caused by the fact that the text alignment for the HideSelectionRow appearance differs from the default text alignment. In general, such a problem can be connected with the grid's appearance customization.
Thank you,
Paul